/*
 * @描述:
 * @作者: 约訂
 * @Date: 2024-07-25 13:32:34
 * @LastEditTime: 2024-07-29 10:48:16
 * @修改人员: 约訂
 */
import request from "@/utils/request";

// 获取参数设置列表
export function queryTicket(data) {
  return request({
    url: "OrderParamConfig/GetList",
    method: "post",
    data,
  });
}
//获取工单处理异常时间配置
export function queryAbnormalTime(data) {
  return request({
    url: "OrderProcessAbnormal/GetList",
    method: "post",
    data,
  });
}
/**修改 参数设置*/
export function editTicket(data) {
  return request({
    url: "OrderParamConfig/Update",
    method: "post",
    data,
  });
}
/**开启或关闭工单异常时间配置 */
export function adjustAbnormalTime(data) {
  return request({
    url: "OrderProcessAbnormal/Enable",
    method: "post",
    data,
  });
}

export function EditAbnormalTim(data) {
  return request({
    url: "OrderProcessAbnormal/Setting",
    method: "post",
    data,
  });
}

export default {
  queryTicket,
  queryAbnormalTime,
  editTicket,
  adjustAbnormalTime,
  EditAbnormalTim,
};
